package org.senzacontrollo.designPatterns.mediator;

public class Queue extends BankEntity{
	
	private int size;
	
	public Queue(BankServiceOrganizer bso){
		super(bso);
	}
	
	public void enqueue(){
		size ++;
		changed();
	}
	
	public void dequeue(){
		if(size >0 )
			size --;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}
	
	

}
